
/**
 * @FileName AssertUtil.java
 * @Desciption TODO
 * @author zhouchuanbo
 * @date 2019年9月24日
 */
package com.dotflat.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.UUID;


public class UuidUtil {
    /*** 创建32随机字母 */
    public static String getUuid() {
        return  UUID.randomUUID().toString().replaceAll("-", "").substring(0, 32);
    }

    /*** 创建6随机数值 */
    public static Integer getOrderNo() {
        return (int)((Math.random()*9+1)*100000);
    }

    public static String getString(List<String> list) {
        String ids = "";
        for (int i = 0; i < list.size(); i++) {
            if (list.size()-1  != i) {
                ids += "'" + list.get(i) + "',";
            } else {
                ids += "'" + list.get(i) + "'";
            }
        }
        return ids;
    }
}
